﻿<%@ Page Title="Trang Quản lý của Personnel Officer" Language="C#" MasterPageFile="~/Management/PersonnelOfficer/Site.master" AutoEventWireup="true"

    CodeFile="UpdateStaff.aspx.cs" Inherits="_Default" %>
  
<%@ Register src="StaffInfor.ascx" tagname="StaffInfor" tagprefix="uc1" %>
   

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
    <div>
    <table>
    <tr>
    <td class="style14">
        <asp:TextBox ID="txtSearch" runat="server" Width="251px" 
            style="margin-left: 25px"></asp:TextBox>
    </td>
    <td>
        <asp:Button ID="btnSearch" runat="server" Text="Tìm" Width="105px" 
            onclick="btnSearch_Click" style="margin-left: 0px" />
    &nbsp;</td>
    </tr>
    <tr>
    <td class="style15">
    <asp:Panel runat="server">
        <asp:GridView ID="GridviewStaff" CssClass="gridview" runat="server" 
                            BorderStyle="None" AutoGenerateColumns="False"
                           Width="327px" Height="95px" BackColor="White" 
                           BorderColor="#CC9966" BorderWidth="1px" CellPadding="4">
                            <Columns>
                                <asp:BoundField HeaderText="ID" DataField="ID" >                                    
                                    <ItemStyle Height="30px" Width="100px" HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Họ đệm" DataField="FName" >                                    
                                    <ItemStyle Height="30px" Width="100px" HorizontalAlign="Center" />
                                </asp:BoundField>
                               <asp:TemplateField HeaderText="Tên">                
                                    <ItemTemplate>
                                        <asp:LinkButton ID="linkbtnName" Text='<%# Eval("LName") %>' OnClick="linkbtnName_OnClicked" CommandArgument='<%# Eval("ID") %>' runat="server"/>
                                    </ItemTemplate>
                                    <ItemStyle Height="30px" Width="100px" HorizontalAlign="Center" />
                                </asp:TemplateField>                  
                            </Columns>
                            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                            <PagerStyle ForeColor="#330099" HorizontalAlign="Center" BackColor="#FFFFCC" />
                            <RowStyle BackColor="White" ForeColor="#330099" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                            <SortedAscendingCellStyle BackColor="#FEFCEB" />
                            <SortedAscendingHeaderStyle BackColor="#AF0101" />
                            <SortedDescendingCellStyle BackColor="#F6F0C0" />
                            <SortedDescendingHeaderStyle BackColor="#7E0000" />
                        </asp:GridView>
     </asp:Panel>
    </td>

    <td>
         <uc1:StaffInfor ID="StaffInfor" runat="server" />
    </td>
    </tr>

    <tr>
    <td class="style14">
        <asp:LinkButton ID="linkbtn" runat="server" onclick="linkbtn_Click">Sửa</asp:LinkButton>
    <td>
    </tr>

    <tr>
    <td class="style14">
    <asp:Button ID="btnEdit" runat="server" Text="Cập nhật" Width="127px" 
            style="margin-left: 120px" onclick="btnEdit_Click" />
    </td>
    <td>
    <asp:Button ID="btnDel" runat="server" Text="Xóa" Width="128px" 
            style="margin-left: 132px" onclick="btnDel_Click" />
    </td>
    </tr>
    </table>
    </div>
    </asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .style13
        {
            width: 186px;
        }
        .style14
        {
            width: 205px;
        }
        .style15
        {
            width: 205px;
            color: #0066FF;
        }
        .style16
        {
            color: #0066FF;
        }
    </style>
</asp:Content>

